package homework3;

public class GEmptyList<T> implements IGList<T> {
	@Override
	public IGList<T> addElt(T o) {
		return new GList<T>(o, this);
	}

	@Override
	public IGList<T> remElt(T o) {
		throw new IllegalStateException("Empty OEmptyList");
	}

	@Override
	public boolean hasElt(T o) {
		return false;
	}

	@Override
	public int size() {
		return 0;
	}
}
